package com.lin.sppringbootdemo.controller;

import com.lin.sppringbootdemo.config.LimitConfig;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;


@Api("hello接口")
@Slf4j
@Controller
public class HelloController {

    @Autowired
    LimitConfig limitConfig;


    @ApiOperation("thyhello")
    @GetMapping("/thy/config")
    public String thyController(ModelMap map){
//        return limitConfig.toString();
        map.put("host","asdfghjk");
        return "thymeleaf/index";
    }


    @ApiOperation("ftlhello")
    @GetMapping("/ftl/config")
    public String ftlController(ModelMap map){
//        return limitConfig.toString();
        map.put("host","asdfghjk");
        return "freemarker/index";
    }



}
